home *** CD-ROM | disk | FTP | other *** search
- Path: surfnet.nl!sun4nl!xs4all!falstaff
- From: falstaff@xs4all.nl (Falstaff)
- Newsgroups: comp.lang.c
- Subject: Re: HELP! Modifying the EOF in a file!
- Date: 14 Mar 1996 23:08:37 GMT
- Organization: XS4ALL, networking for the masses
- Message-ID: <4ia8tl$cd3@news.xs4all.nl>
- References: <4i585k$4ia@news.netam.net> <4i5pb4$fae@sparcserver.lrz-muenchen.de> <4i79pd$slk@news.netam.net>
- NNTP-Posting-Host: xs1.xs4all.nl
- X-Newsreader: NN version 6.5.0 #666 (NOV)
-
- bgc@alpha.netam.net (The Bowling Green Connection) writes:
-
- >ua302aa@lrz-muenchen.de wrote:
- >: I fail to see where you want to _write_ to "file.txt"
-
- >I have a queue set up on the internet to mail mime-format
- >messages to myself (there is a reason why, but it's
- >too long for me to explain now). Basically, from a
- >browser you can click a submit button which will call
- >this SendMail procedure. The procedure extracts information
- >from the fillout form on the page and creates a text file
- >under the name of mime.body in Unix.
-
- >Now, since it is possible for two or more people to submit
- >messages at the same time, I have to make sure that the
- >mime.body file is locked (I use the flock() procedure)
-
- Why? Surely you can use tmpnam() to create a unique filename
- for each invocation of your SendMail function?
-
- Frank
- --
- The famous GIICM now on line: http://www.xs4all.nl/~falstaff/GIICM.html
- ------------------------------------------------------------------------
- Frank A. Vorstenbosch +31-(70)-355 5241 falstaff@xs4all.nl
-